package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-11-07
 */
@Data
@TableName("Price_OrderCache")
@ApiModel(value = "PriceOrdercacheDO对象", description = "")
public class PriceOrderCacheDO implements Serializable {


    private static final long serialVersionUID = -3269856933108775525L;
    @ApiModelProperty("订单id")
    private Long cacheOrderid;

    @ApiModelProperty("费用类型   1 零担  2 整车  3 提货费  4 送货费  5 装货费  6 卸货费  7 最小金额  8 保费  9 附加费  10 税费 11 搬运费 12 预付 13 到付")
    private Integer cacheType;

    @ApiModelProperty("0 报价费用 1 附加费")
    private Long cacheIsaddition;

    @ApiModelProperty("费用")
    private BigDecimal cacheAmount;

    @ApiModelProperty("创建人")
    private Long cacheAuthor;

    @ApiModelProperty("创建时间")
    private LocalDateTime cacheInserttime;

    @ApiModelProperty("修改人")
    private Long cacheUpdater;

    @ApiModelProperty("修改时间")
    private LocalDateTime cacheUpdatetime;

    @ApiModelProperty("是否失效 0 否 1是")
    private Integer cacheInvalid;

    @ApiModelProperty("备注")
    private String cacheComments;

    @ApiModelProperty("报价号")
    private Long cacheDocid;

    @ApiModelProperty("迭代上一级失效的报价单标识")
    private String cacheIterationcontent;

    @ApiModelProperty("价格匹配过程说明字段")
    private String cacheDesc;

    @TableId(value = "Cache_ID", type = IdType.AUTO)
    private Long cacheId;

    @ApiModelProperty("租户id")
    @TableField(exist = false)
    private Long tenantId;
    @ApiModelProperty("状态")
    @TableField(exist = false)
    private Integer status;
    @ApiModelProperty(value = "是否价格重算")
    @TableField(exist = false)
    private Integer refresh;
    @TableField(exist = false)
    @ApiModelProperty(value = "运输模式")
    private Integer transportMode;
    @TableField(exist = false)
    @ApiModelProperty(value = "描述")
    private String remarks;


}
